"use strict";
const { Controller } = require("egg");
const fs = require("fs-extra");
const p = require("path");

class NotifiController extends Controller {
  async getList() {
    const { ctx, service } = this;
    let data = ctx.request.body;
    let query = ctx.query;
    let ret = await service.notifi.getList(data);
    ctx.success(ret);
  }
  async getCount() {
    const { ctx, service } = this;
    let data = ctx.request.body;
    let query = ctx.query;
    let ret = await service.notifi.getCount(data);
    ctx.success(ret);
  }
  async readNotifi(){
    const { ctx, service } = this;
    let data = ctx.request.body;
    let query = ctx.query;
    let ret = await service.notifi.readNotifi(data);
    ctx.success(ret);
  }
}

module.exports = NotifiController;
